var result_36 = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"", "MSG":"","DATA":"","RULE":"36"}');

if (betweenDay(EFF_DATE, new Date()) >= 0) {
    EFF_DATE = new Date();
}

if (RETAIL_TYPE == 'TR' 
&& betweenDay(EFF_DATE, EXP_DATE) < 3) {
    if (isFresh(DEPT_NBR)) {
        result_36.CODE = 1;
        result_36.ACTION = "APPROVAL_LEVEL";
        result_36.LEVEL = "AG";
        result_36.MSG = "生鲜TR变价需要保证至少3天的有效期，不满3天需GMM审批";
    }
    if(VENDOR_NBR == 332726){
        result_36.CODE = 1;
        result_36.ACTION = "APPROVAL_LEVEL";
        result_36.LEVEL = "AG";
        result_36.MSG = "电器部京东项目变价时间小于3天,需GMM审批";
    }
}
JSON.stringify(result_36);